Skip to main content

Chain Config

Queries chain config information for wallets like Keplr, Leap etc...

query Chain_config($chainUid: String, $chainId: String) {
chains {
chain_config(chain_uid: $chainUid, chain_id: $chainId) {
chain_id
factory_address
display_name
explorer_url
chain_uid
logo
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Chain_config($chainUid: String, $chainId: String) {\n chains {\n chain_config(chain_uid: $chainUid, chain_id: $chainId) {\n chain_id\n factory_address\n display_name\n explorer_url\n chain_uid\n logo\n }\n }\n}","variables":{"chainUid":"osmosis","chainId":"osmo-test-5"}}'

Open in Playground

Arguments

  • chainId (String!): The Id of the chain config being used.
  • chainUid (String!): The unique Id for the chain.

Return Fields

FieldTypeDescription
factory_addressStringThe contract address of the factory contract on that chain.
chain_uidStringThe unique identifier (UID) of the chain.
display_nameStringThe display name of the chain.
logoStringThe URL or reference to the chain's logo image.
chain_idStringThe chain Id for the chain config.
explorer_urlStringThe URL to the blockchain explorer for this chain.